package test.thread;

/**
 * Created with IntelliJ IDEA.
 * User: leep
 * Date: 16-3-8
 * Time: 下午1:19
 * To change this template use File | Settings | File Templates.
 */
public class ThreadMain {
	public static void main(String[] args) {
		ThreadTest threadTest = new ThreadTest();
		threadTest.run();

		ThreadTest2 threadTest2 = new ThreadTest2();
		threadTest2.run();
	}
}

class ThreadTest implements Runnable {

	@Override
	public void run() {
		System.out.println("aaa");
	}
}

class ThreadTest2 extends Thread {
	@Override
	public void run() {
		System.out.println("bbb");

	}
}
